#include "stdafx.h"
#include "xinlistcombo.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

CXInListCombo::CXInListCombo()
{
	m_nRow = -1;
	m_nCol = -1;
	m_bESC = FALSE;
}

CXInListCombo::CXInListCombo(int nRow,int nCol)
{
	m_nRow = nRow;
	m_nCol = nCol;
	m_bESC = FALSE;
}

int CXInListCombo::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CComboBox::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// Set the proper font
	CFont* font = GetParent()->GetFont();
	SetFont(font);
	SetFocus();
	return 0;
}

BEGIN_MESSAGE_MAP(CXInListCombo,CComboBox)
	ON_WM_CREATE()
END_MESSAGE_MAP()
